package com.ruoyi.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.demo.domain.BsTrips;
import com.ruoyi.demo.domain.TestDemo;
import com.ruoyi.demo.domain.vo.BsTripsVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 出差信息Mapper接口
 *
 * @author lgp
 * @date 2022-07-29
 */
public interface BsTripsMapper extends BaseMapperPlus<BsTripsMapper, BsTrips, BsTripsVo> {

    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    <P extends IPage<BsTrips>> P selectPage(P page, @Param(Constants.WRAPPER) Wrapper<BsTrips> queryWrapper);

}
